package com.lening.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.StoreDto;
import com.lening.community.mapper.StoreMapper;
import com.lening.community.pojo.Store;
import com.lening.community.service.StoreService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */
@Service
public class StoreServiceImpl extends BaseServiceImpl<StoreMapper, Store, StoreDto>
implements StoreService {


    @Override
    public Page<Store> page(StoreDto storeDto) {
        return this.baseMapper.page(storeDto);
    }

    @Override
    public List<Store> find() {
        return this.baseMapper.find();
    }

    @Override
    public int insert(Store store) {
        return this.baseMapper.insert(store);
    }

    @Override
    public Store getById(Long oid) {
        return this.baseMapper.getById(oid);
    }
}
